﻿namespace Monti.MVVM.Services
{
   /// <summary>
   /// Interface for a message box service.
   /// </summary>
   public interface IMessageBoxService
   {
      /// <summary>
      /// Shows a dialog asking the user to answer yes or no.
      /// </summary>
      /// <param name="message">Message to put in dialog.</param>
      /// <param name="caption">Caption for dialog, default is 'Yes or No?'</param>
      /// <returns>True if the user pressed yes, False if no was pressed.</returns>
      bool ShowYesNo (string message, string caption = "Yes or No?");
      
      /// <summary>
      /// Shows an error dialog.
      /// </summary>
      /// <param name="message">Message to put in dialog.</param>
      /// <param name="caption">Caption for dialog, default is 'Error'</param>
      /// <returns>True if the user pressed yes, False if no was pressed.</returns>
      void ShowError (string message, string caption = "Error");
   }
}
